x86/hvm: use ioreq_t to track in-flight state
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 9 Jul 2015 17:15:00 +0000 (19:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Jul 2015 08:20:20 +0000 (10:20 +0200)
commit763c8a8db2ecfc32c951bee0cff15b723a41bbfd
treec72a03e98fce4acedc2dc4390aa1423613e1fff2
parent12b27c7b9c2641814d76b6fa7154cd070c98a102
x86/hvm: use ioreq_t to track in-flight state

Use an ioreq_t rather than open coded state, size, dir and data fields
in struct hvm_vcpu_io. This also allows PIO completion to be handled
similarly to MMIO completion by re-issuing the handle_pio() call.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/nestedsvm.c
xen/arch/x86/hvm/vmx/realmode.c
xen/include/asm-x86/hvm/vcpu.h